home *** CD-ROM | disk | FTP | other *** search
- unit DemoUnit;
- {$O+}
- interface
-
- uses Ovr_Obj;
-
- procedure DemoUnitProc;
-
- implementation
-
- type
- StringPtr = ^String;
-
- var
- DataPtr : StringPtr;
-
- procedure DemoText; external;
- {$L DemoText.Obj}
-
- procedure DemoUnitProc;
- begin
- DataPtr := OvrObj (@DemoText); { Get the actual address of the data }
- Writeln (DataPtr^); { Show that it worked }
-
- { OvrObj can be dereferenced directly using typecasting }
- Writeln (StringPtr(OvrObj(@DemoText))^);
- end;
-
- end.